  /**
   * Generate time : 2016-04-27 14:08:31
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNSaleAccount 
 * table comment : 销售煤质量台账 
 */
public class ZMCNSaleAccount extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private BigDecimal fdMyMt = new BigDecimal("0");		/* 全水分Mt(%)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyQnet = new BigDecimal("0");		/* 发热量Qnet,v,ar(J/g)*/
	private BigDecimal fdMyQnetk = new BigDecimal("0");		/* 发热量Qnet,v,ar(kcal/kg)*/
	private BigDecimal fdSaleNum = new BigDecimal("0");		/* 销售数量*/
	private BigDecimal fdCheNum = new BigDecimal("0");		/* 车数*/
	private String fdTargetDepartment = " ";		/* 目标单位名称*/
	private String fdSaleDate = " ";		/* 销售日期*/
	private String fdSaleType = " ";		/* 销售类型*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private String fdDepartmentId=" ";/*单位id*/
	private String fdDepartment=" ";/*单位*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("全水分Mt(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnet");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qnet,v,ar(J/g)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnetk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qnet,v,ar(kcal/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSaleNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("销售数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCheNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("车数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTargetDepartment");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("目标单位名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSaleDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("销售日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSaleType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("销售类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("单位id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("单位");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCNSaleAccount() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdMyMt - 全水分Mt(%)
	 * @return the fdMyMt
	 */
	public BigDecimal getFdMyMt() {
		return this.fdMyMt;
	}
	
	/**
	 * set the fdMyMt - 全水分Mt(%)
	 */
	public void setFdMyMt(BigDecimal fdMyMt) {
		this.fdMyMt = fdMyMt;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 * @return the fdMyQnet
	 */
	public BigDecimal getFdMyQnet() {
		return this.fdMyQnet;
	}
	
	/**
	 * set the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 */
	public void setFdMyQnet(BigDecimal fdMyQnet) {
		this.fdMyQnet = fdMyQnet;
	}
	/**
	 * get the fdMyQnetk - 发热量Qnet,v,ar(kcal/kg)
	 * @return the fdMyQnetk
	 */
	public BigDecimal getFdMyQnetk() {
		return this.fdMyQnetk;
	}
	
	/**
	 * set the fdMyQnetk - 发热量Qnet,v,ar(kcal/kg)
	 */
	public void setFdMyQnetk(BigDecimal fdMyQnetk) {
		this.fdMyQnetk = fdMyQnetk;
	}
	/**
	 * get the fdSaleNum - 销售数量
	 * @return the fdSaleNum
	 */
	public BigDecimal getFdSaleNum() {
		return this.fdSaleNum;
	}
	
	/**
	 * set the fdSaleNum - 销售数量
	 */
	public void setFdSaleNum(BigDecimal fdSaleNum) {
		this.fdSaleNum = fdSaleNum;
	}
	/**
	 * get the fdCheNum - 车数
	 * @return the fdCheNum
	 */
	public BigDecimal getFdCheNum() {
		return this.fdCheNum;
	}
	
	/**
	 * set the fdCheNum - 车数
	 */
	public void setFdCheNum(BigDecimal fdCheNum) {
		this.fdCheNum = fdCheNum;
	}
	/**
	 * get the fdTargetDepartment - 目标单位名称
	 * @return the fdTargetDepartment
	 */
	public String getFdTargetDepartment() {
		return this.fdTargetDepartment;
	}
	
	/**
	 * set the fdTargetDepartment - 目标单位名称
	 */
	public void setFdTargetDepartment(String fdTargetDepartment) {
		this.fdTargetDepartment = fdTargetDepartment;
	}
	/**
	 * get the fdSaleDate - 销售日期
	 * @return the fdSaleDate
	 */
	public String getFdSaleDate() {
		return this.fdSaleDate;
	}
	
	/**
	 * set the fdSaleDate - 销售日期
	 */
	public void setFdSaleDate(String fdSaleDate) {
		this.fdSaleDate = fdSaleDate;
	}
	/**
	 * get the fdSaleType - 销售类型
	 * @return the fdSaleType
	 */
	public String getFdSaleType() {
		return this.fdSaleType;
	}
	
	/**
	 * set the fdSaleType - 销售类型
	 */
	public void setFdSaleType(String fdSaleType) {
		this.fdSaleType = fdSaleType;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	
	/**
	 * get the fdDepartmentId - 单位id
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 单位id
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdDepartment - 单位
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdMyMt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMt")), fdMyMt));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyQnet(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnet")), fdMyQnet));
		setFdMyQnetk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnetk")), fdMyQnetk));
		setFdSaleNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdSaleNum")), fdSaleNum));
		setFdCheNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCheNum")), fdCheNum));
		setFdTargetDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTargetDepartment")), fdTargetDepartment));
		setFdSaleDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSaleDate")), fdSaleDate));
		setFdSaleType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSaleType")), fdSaleType));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdMyMt",StringUtils.toString(fdMyMt, eiMetadata.getMeta("fdMyMt")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyQnet",StringUtils.toString(fdMyQnet, eiMetadata.getMeta("fdMyQnet")));	
			map.put("fdMyQnetk",StringUtils.toString(fdMyQnetk, eiMetadata.getMeta("fdMyQnetk")));	
			map.put("fdSaleNum",StringUtils.toString(fdSaleNum, eiMetadata.getMeta("fdSaleNum")));	
			map.put("fdCheNum",StringUtils.toString(fdCheNum, eiMetadata.getMeta("fdCheNum")));	
			map.put("fdTargetDepartment",StringUtils.toString(fdTargetDepartment, eiMetadata.getMeta("fdTargetDepartment")));	
			map.put("fdSaleDate",StringUtils.toString(fdSaleDate, eiMetadata.getMeta("fdSaleDate")));	
			map.put("fdSaleType",StringUtils.toString(fdSaleType, eiMetadata.getMeta("fdSaleType")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));
			
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
			
		return map;
	
	}
}